package cn.edu.cqupt.cxcy.action;

import java.io.IOException;
import java.util.Date;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.edu.cqupt.cxcy.model.Project;
/**
 * 团队发布项目
 * @author chenchuan
 *
 */
public class TeamPublishProject extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
    	this.doPost(req, resp);
    }
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException ,IOException {
    	request.setCharacterEncoding("utf-8");
    	String project_name = request.getParameter("projectName");//发布的项目名称
    	//String create_date = Tools.getDateCN();//创建项目的时间
    	String project_progress = request.getParameter("projectProgress");//项目完成的进度
        String project_issue = request.getParameter("projectIssue");//项目的简介
        String project_content = request.getParameter("projectContent");//项目的内容
        Project project = new Project();
        project.setP_name(project_name);
        project.setP_progress(Integer.parseInt(project_progress));
        project.setP_explain(project_issue);
        project.setP_content(project_content);
    };
}
